package com.peppa.petshop.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 张三
 * @since 2021-06-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class Indent implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "indent_id", type = IdType.AUTO)
    private Integer indentId;

    private Integer customer;

    private Integer address;

    private BigDecimal totalPrice;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    private Integer indentStatus;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
    @TableLogic
    private Integer deleted;

    public Indent() {
    }

    public Indent(Integer indentId, Integer customer, Integer address, BigDecimal totalPrice, LocalDateTime createTime, Integer indentStatus, LocalDateTime updateTime, Integer deleted) {
        this.indentId = indentId;
        this.customer = customer;
        this.address = address;
        this.totalPrice = totalPrice;
        this.createTime = createTime;
        this.indentStatus = indentStatus;
        this.updateTime = updateTime;
        this.deleted = deleted;
    }

}
